package com.shcowin.controller;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
/**
 * @author weiweiqin
 * @createDate 2013-3-1 10:18:02
 * @file HomeController.java
 * @package com.shcowin.controller
 * @project shcowin
 * @blog http://rather-lonely.iteye.com/
 * @email 13773607653@163.com
 * @version 1.0
 */
@Controller
@RequestMapping("/home")
public class HomeController{
    @RequestMapping("/first")
    public String home() {
        return "redirect:/home.jsp";
    }
    
    @RequestMapping("/about")
    public String about(){
    	return "redirect:/about.jsp";
    }
    
    @RequestMapping("/about1")
    public String about1(){
    	return "redirect:/about1.jsp";
    }
    
    @RequestMapping("/about2")
    public String about2(){
    	return "redirect:/about2.jsp";
    }
    
    @RequestMapping("/contact")
    public String contact(){
    	return "redirect:/contact.jsp";
    }
    
    @RequestMapping("/job")
    public String job(){
    	return "redirect:/job.jsp";
    }
    
    @RequestMapping("/job1")
    public String job1(){
    	return "redirect:/job1.jsp";
    }
    
    @RequestMapping("/news")
    public String news(){
    	return "redirect:/news.jsp";
    }
    
    @RequestMapping("/news1")
    public String news1(){
    	return "redirect:/news1.jsp";
    }
    
    @RequestMapping("/productDetail")
    public String productDetail(int id,Model model){
    	model.addAttribute("id",id);
    	return "redirect:/productDetail.jsp";
    }
    
    @RequestMapping("/newsDetail")
    public String newsDetail(int id,Model model){
    	model.addAttribute("id",id);
    	return "redirect:/newsDetail.jsp";
    }
    
    @RequestMapping("/products")
    public String products(){
    	return "redirect:/products.jsp";
    }
    
    @RequestMapping("/net")
    public String net(){
    	return "redirect:/net.jsp";
    }
}
